<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<script src="../../js/mui.min.js"></script>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/share/common.css" />
		<style>
			.main_dingdan_xinxi {
				background: #fff;
			}
			
			.main_dingdan_xinxi li {
				line-height: 45px;
				height: 45px;
				padding: 0px 15px;
				border-bottom: 1px solid #ccc;
				font-size: 0.95em;
			}
			
			.main_success {
				padding: 15px;
				font-size: 0.9em;
			}
			
			.main_success p {
				line-height: 25px;
			}
			
			.main_success button {
				width: 100%;
				line-height: 28px;
				color: #fff;
				background: #e23308;
				border-radius: 5px;
				margin-top: 70px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">订单支付成功</h1>
		</header>
		<div class="mui-content">
			<ul class="main_dingdan_xinxi">
				<li id="orderNumber">
					订单编码：
				</li>
				<li id="money">
					订单金额：￥0
				</li>
			</ul>
			<div class="main_success">
				<p>
					重要提示：逛购不会以订单异常、订单无效为由主动要求您提供银行卡号操作退款，谨防诈骗！
				</p>
				<button onclick="openBuy()">
						再逛逛
					</button>
			</div>
		</div>
		<script type="text/javascript" src="../../js/localData.js"></script>
		<script>
			mui.ready(function() {
				var order = eval('(' + readData(localStorage.order) + ')');
				mui("#orderNumber")[0].innerText = "订单编码：" + order.orderNumber;
				mui("#money")[0].innerText = "订单金额：￥" + order.amount;
			})
			mui.init({
				keyEventBind: {
					backbutton: false,
				}
			});
			document.addEventListener("plusready", function() {
				closeWin("buyCar.html", "conformOrder.html", "orderPayAlipay.html", "orderPay.html", "productDetail.html", "orderDetail.html", "orderManager.html")
			}, false)

			function openBuy() {
				//plus.nativeUI.showWaiting("请稍等…")
				localStorage.removeItem("order");
				//closeWin("buyCar.html", "conformOrder.html", "orderPayAlipay.html", "orderPay.html", "productDetail.html", "orderDetail.html", "orderManager.html")
				plus.webview.close(plus.webview.currentWebview());
				plus.webview.getWebviewById("homeMain.html").reload(true);
			}

			function closeWin() {
				for (var i = 0; i < arguments.length; i++) {
					var view = plus.webview.getWebviewById(arguments[i])
					if (view) {
						plus.webview.hide(view, "none", 0)
						plus.webview.close(view, "none", 0)
					}
				}
				//plus.nativeUI.closeWaiting()
			}
			mui.back = function() {
				return;
			}
		</script>
	</body>

</html>